package ran.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import ran.entity.PageRequest;
import ran.entity.QuestionInfo;
import ran.entity.ResponseResult;
import ran.mapper.OptionMapper;
import ran.mapper.QuestionMapper;

import java.io.IOException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-09-30
 * Time: 12:47
 */
public interface QuestionService {
//    void importExcel(MultipartFile file) throws IOException;
    void importFromExcel(MultipartFile file) throws Exception;

    ResponseResult<QuestionInfo> getListByPage(PageRequest pageRequest);


    QuestionInfo queryQuestionById(Integer questionId);

    boolean updateBook(QuestionInfo questionInfo);

    boolean deleteQuestion(Long questionId);

    void deleteBatch(List<Integer> ids);
}
